package com.sikaryofficial.workbench.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sikaryofficial.system.api.model.att.AttachmentResp;
import com.sikaryofficial.workbench.domain.entity.Attachment;

import java.util.List;
import java.util.Map;


/**
 * 附件Service接口
 * 
 * @author wuweihong
 * @date 2024-09-23
 */
public interface IAttachmentService extends IService<Attachment>
{

    /**
     * 保持附件 ：图片
     * @param objectId
     * @param attachmentRespList
     * @param userId
     */
    void saveAttachmentList(Long objectId, List<AttachmentResp> attachmentRespList, Long userId);

    /**
     * 删除附件 ：图片
     * @param objectId
     * @param userId
     */
    boolean deleteAttachmentList(Long objectId, Long userId);

    /**
     * 根据对象ID获取附件 ：图片
     * @param objectId
     * @return
     */
    List<AttachmentResp> getAttachmentById(Long objectId);

    /**
     * 根据对象ID获取附件 ：图片
     * @param objectId
     * @return
     */
    List<AttachmentResp> getAttachmentDescById(Long objectId);

    /**
     * 根据对象ID集合获取附件 ：图片
     * @param objectIds
     *  @return
     */
    Map<Long,List<AttachmentResp>> getAttachmentByIds(List<Long> objectIds);
}
